<?php /* Smarty version 2.6.26, created on 2013-10-17 01:41:22
         compiled from news_admin.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'l', 'news_admin.tpl', 18, false),array('modifier', 'date_format', 'news_admin.tpl', 19, false),)), $this); ?>
<div class="box">
  <div class="box-content">
	  <form method="post">
      <table class="table table-striped table-hover">
      <thead>
      <tr>
        <th width="30">ID</th>
        <th>Tiêu đề</th>
        <th width="100">Ngày gửi</th>
        <th width="100">Trạng thái</th>
        <th width="100">Chỉnh sửa</th>
      </tr>
      </thead>
      <tbody>
      <?php $_from = $this->_tpl_vars['aNews']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['news']):
?>
      <tr <?php if ($this->_tpl_vars['news']['news_ispinned'] == 1): ?>class="ispinned"<?php endif; ?>>
        <td><?php echo $this->_tpl_vars['news']['news_id']; ?>
</td>
        <td><strong><?php echo $this->_tpl_vars['aCat'][$this->_tpl_vars['news']['news_cat_id']]; ?>
</strong> &raquo; <a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
" target="_blank"><?php echo $this->_tpl_vars['news']['news_title']; ?>
</a></td>
        <td align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_created'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%Y") : smarty_modifier_date_format($_tmp, "%d/%m/%Y")); ?>
</td>
        <td align="center"><?php if ($this->_tpl_vars['news']['news_published'] == 0): ?>Ẩn<?php else: ?>Đã xuất bản<?php endif; ?></td>
        <td align="center" nowrap="nowrap">
          <a href="<?php echo ((is_array($_tmp='news/edit/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
">Sửa</a> - 
          <a class="confirm" href="<?php echo ((is_array($_tmp='news/delete/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
">Xóa</a>
				</td>
      </tr>
      <?php endforeach; else: ?>
      <tr>
        <td colspan="4" align="center">(Hiện chưa có tin nào.)</td>
      </tr>
      <?php endif; unset($_from); ?>
      </tbody>
      </table>
      </form>
  </div>
</div>